const Sequelize = require('sequelize');

const {host, user, password, db, port, charset} = require('../config/config').database;

const sequelize = Sequelize(db, user, password, {
    dialect: 'mysql',
    host,
    port,
    logging: true,
    timezone: '+8:00',
    define: {}
});

module.exports = {
    db: sequelize
};